﻿@model KPIS.GERP.Models.ICM.WarehousePermit

@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "editpermit")
{
@Html.HiddenFor(model => model.WarehousePermitId)
}
@Html.HiddenFor(model => model.WhId)
@Html.HiddenFor(model => model.RecordStatus)
@Html.HiddenFor(model => model.CreatedBy)
@Html.HiddenFor(model => model.CreatedWhen)
@Html.HiddenFor(model => model.UpdatedBy)
@Html.HiddenFor(model => model.UpdatedWhen)

@*@{
    KPIS.GERP.WEB.GIMS.JobsiteService.JobsiteServiceClient serviceJobsite
        = new KPIS.GERP.WEB.GIMS.JobsiteService.JobsiteServiceClient();
}*@

<div class="widget-box">
	<div class="widget-header">
        <h4>หน่วยงานเบิกจ่าย</h4>
    </div>
    <div class="widget-body">
        <div class="widget-body-inner">
			<div class="widget-main">
                <div class="control-group">
                    <div class="control-label">
                        หน่วยงานเบิกจ่าย
                    </div>
                    <div class="controls">
                        @Html.DropDownListFor(m => m.JobSiteId, new KPIS.GERP.WEB.GIMS.JobsiteService.JobsiteServiceClient().LoadInternalJobSiteSelectList(null, false, 3))
                        @Html.ValidationMessageFor(model => model.JobSiteId)
                    </div>            
                </div>
            </div>
        </div>
    </div>
</div>